package cn.ibobo.lease.common.util;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Description: 分页视图对象 
 * Project: meirenhui 
 * ClassName: PaginationVO 
 * Copyright: Copyright (c) 2017 deshang
 * @author bushy
 * @version 1.0 2017年10月19日下午4:04:50
 */
@Data
public class PaginationVO<T> implements Serializable {

	private static final long serialVersionUID = 1L;
	//每页的数量
	private int pageSize;
	//当前页
	private int pageNum;
    //总记录数
    private long total;
    //总页数
    private int pages;
    //上一页
    private int prePage;
    //下一页
    private int nextPage;
    //是否为第一页
    private boolean isFirstPage;
    //是否为最后一页
    private boolean isLastPage;
    //结果集
    private List<T> data;
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public int getPages() {
		return pages;
	}
	public void setPages(int pages) {
		this.pages = pages;
	}
	public int getPrePage() {
		return prePage;
	}
	public void setPrePage(int prePage) {
		this.prePage = prePage;
	}
	public int getNextPage() {
		return nextPage;
	}
	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}
	public boolean isFirstPage() {
		return isFirstPage;
	}
	public void setFirstPage(boolean isFirstPage) {
		this.isFirstPage = isFirstPage;
	}
	public boolean isLastPage() {
		return isLastPage;
	}
	public void setLastPage(boolean isLastPage) {
		this.isLastPage = isLastPage;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
    
}
